﻿<local:CriteriaControlBase x:Class="Rio.Framework.Pages.CriteriaControls.ListOjectIndexControl"
                           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                           xmlns:local="clr-namespace:Rio.Framework.Pages.CriteriaControls"
                           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                           xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                           mc:Ignorable="d"
                           d:DesignHeight="30"
                           d:DesignWidth="300">

    <local:CriteriaControlBase.Resources>
        <Style x:Key="ComboboxInputStyle"
               TargetType="telerik:RadComboBox">
            <Setter Property="Width"
                    Value="230" />
            <Setter Property="Height"
                    Value="24" />
            <Setter Property="Margin"
                    Value="5,0,5,0" />
            <Setter Property="HorizontalAlignment"
                    Value="Left" />
        </Style>
    </local:CriteriaControlBase.Resources>

    <StackPanel>
        <StackPanel Orientation="Horizontal">
            <TextBlock Name="LabelControl"
                       Style="{StaticResource LabelIndexStyle}" />
            <TextBlock Name="LabelMandatory"
                       Text="*"
                       Margin="0,0,5,0"
                       Foreground="Red"
                       Visibility="Collapsed" />
        </StackPanel>
        <StackPanel Orientation="Horizontal">
            <telerik:RadComboBox x:Name="ComboboxInput"
                                 LostFocus="ComboboxInput_LostFocus"
                                 SelectionChanged="ComboboxInput_SelectionChanged"
                                 Style="{StaticResource ComboboxInputStyle}"
                                 ClearSelectionButtonVisibility="Visible"
                                 ClearSelectionButtonContent="Clear" Margin="5,3,5,0" />

            <telerik:RadButton Name="FilterButton"
                               Visibility="Collapsed"
                               Width="25" Height="25"
                               Click="buttonInput_Click">
                <Image Width="16"
                       Height="16"
                       Source="../../Assets/Images/Filter.png"
                       HorizontalAlignment="Center"
                       VerticalAlignment="Center" />
            </telerik:RadButton>
            <telerik:RadButton Name="DeleteButton" Visibility="Collapsed" Click="buttonDelete_Click" Width="25" Height="25">
                <Image Width="16" Height="16" Source="../../Assets/Images/RemoveControlSearch.png" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            </telerik:RadButton>
        </StackPanel>
    </StackPanel>
</local:CriteriaControlBase>
